Welcome to your C# Practice Test 1. This test can be taken unlimited times. Signed in users can have their scores saved to be viewed later. Questions will be randomly displaying each test. Good luck! 1. C# is… Object oriented Component oriented Part of .NET framework All of the above2. Which of the following are types of loop in C#? For While Do.. While All of the above3. in C#, Array... Length cannot be changed once created Is an unordered sequence of elements Is value type All of the above None of the above4. An abstract member can be invoked in C# True False5. What is Jagged Array in C#? An array of arrays An array that contains multiple date types An array that can’t be reversed None of the above6. How the "Not Equal" operator is presented in C#? NotEqual <> != None of the above7. In C#, StringBuilder is mutable True False8. In C#, A Struct... Is value type Cannot be inherited to other type Can be abstract All of the above None of the above9. How the "AND” Operator is represented in C#? && || AND None of the above10. in C#, a Delegate... Is a reference type variable Cannot be changed at runtime Is used for implementing events and the call-back methods Is explicitly derived from the System.Delegate class All of the above None of the above11. The keyword “this” can inside a static method in C#? True False12. A struct can be inherited in C# True False13. In C#, a Class... Has value type in C# Is usually used for small data Cannot be inherited Cannot create a default constructor All of the above None of the above14. What is stored in Heap? enum int reference type long15. What is sealed Modifier? Prevents inheritance of a class Prevents method overloading Prevents instantiating None of the above16. In C#,We may get error in finally block. True False17. Assume that i is an integer. What is the correct syntax to compare the value of I? if (i = 0) if i == 0 if (i==0) None of the above18. Which is the base class in .NET from which all the classes are derived from? System.Object System.Objects Systems.Object Systems.Objects None of the above19. Dataset is a disconnected representation of data True False20. C#is a managed code. True False21. In C#, the keyword "Const" … is used for making an entity constant entity cannot have its value reassigned is declare as the following : const string _name = "Constant Value"; All of the above22. A sealed class cannot be inherited True False23. Which of the following are error types in C#? Compile Time Error Run Time Error Application Error 24. How to declare an integer pointer in C#? int i; int *i ; Dim I as integer *i integer;25. String builders inherits from the class ISerializable True FalsePlease fill in the comment box below.
Comments
scored 68% 🙁